Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OVA: Remove the break to properly consume stderr #827

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

bkhizgiy
Copy link
Member

When breaking the scanner loop for firmware detection, we cause the virt-v2v pod to run indefinitely. The call to virtV2vCmd.Wait() waits for the virtV2vCmd process to exit. However, once its stdout or stderr is not being consumed—in our case, the consumer, virtV2vMonitorCmd for stdout, and the scanning loop for stderr—so once we break the loop, the consumption stops, and the main command will wait forever for an action that will not happen.

It was intentionally dropped from the code, and I've missed that part addition in the previous code review.

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@bkhizgiy bkhizgiy changed the title OVA: Remove the brake to properly consume stderr. OVA: Remove the brake to properly consume stderr. Mar 26, 2024
@liranr23 liranr23 changed the title OVA: Remove the brake to properly consume stderr. OVA: Remove the break to properly consume stderr Mar 26, 2024
@ahadas ahadas merged commit c8fcc33 into kubev2v:release-v2.6.0 Mar 26, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants